package day20180130;

/**
 * Created by 14394 on 2018/1/30.
 */
public class TestJvm {
    public static void main(String[] args) {
        System.out.println("最大堆：" + Runtime.getRuntime().maxMemory() / 1024 / 1024 + "M");
        System.out.println("空闲堆：" + Runtime.getRuntime().freeMemory() / 1024 / 1024 + "M");
        System.out.println("总的堆：" + Runtime.getRuntime().totalMemory() / 1024 / 1024 + "M");
        System.out.println(System.getProperty("java.class.path"));
       // System.out.println(System.getProperty("sun.boot.class.path"));
        System.out.println(ClassLoader.getSystemClassLoader());
        System.out.println(ClassLoader.getSystemClassLoader().getParent());
        System.out.println(ClassLoader.getSystemClassLoader().getParent().getParent());


    }
}
